package com.etoak.stock.service;

import com.etoak.stock.pojo.domin.SysPermissionDomain;
import com.etoak.stock.pojo.domin.SysPermissionTreeDomain;
import com.etoak.stock.vo.req.PermissionAddVo;
import com.etoak.stock.vo.req.PermissionUpdateVo;
import com.etoak.stock.vo.resp.R;

import java.util.List;

/**
 * @Author by 孙有泽
 * @Date 2024/11/11 13:21
 * @Description
 */
public interface PermissionService {

    R<List<SysPermissionDomain>> getAllPermission();

    R<List<SysPermissionTreeDomain>> getAllPermissionTree();

    R addPermission(PermissionAddVo permissionAddVo);

    R updatePermission(PermissionUpdateVo permissionUpdateVo);

    R deletePermission(Long permissionId);

}
